/*
 add by yuyang 2017-02-20
 */

#import <UIKit/UIKit.h>

@interface NSString (YYAdd)

#pragma mark - Drawing

- (CGSize)sizeForFont:(UIFont *)font size:(CGSize)size mode:(NSLineBreakMode)lineBreakMode;


- (CGFloat)widthForFont:(UIFont *)font;


- (CGFloat)heightForFont:(UIFont *)font width:(CGFloat)width;

/**
 Trim blank characters (space and newline) in head and tail.
 @return the trimmed string.
 */
- (NSString *)stringByTrim;

/**
 *  汉字的拼音
 *
 *  @return 拼音
 */
- (NSString *)pinyin;


- (NSAttributedString *)toMoneyFormat;


/**
 json串转字典
 */
- (NSDictionary *)json2dictionary;


- (NSString *)compareCurrentTime;


@end
